@echo off

if "%1"=="zh" (
	goto :zh
) else (
	goto :en
)


:zh
rem echo 检查管理员权限
cacls.exe "%SystemDrive%\System Volume Information" >nul 2>nul
if %errorlevel%==0 (
    rem echo 已授权管理员权限.
    exit /b 0
) else (
    chcp 65001 1>nul 2>nul
    echo 点击右键打开菜单，选择”以管理员身份运行”本脚本.
	exit /b 1
)


:en
echo check Running as Administrator
cacls.exe "%SystemDrive%\System Volume Information" >nul 2>nul
if %errorlevel%==0 (
    echo Administrator privileges confirmed.
    exit /b 0
) else (
    echo Right-click and select "Run as Administrator" to run this script.
	exit /b 1
)

